package com.wye.dao;

import com.wye.goods.pojo.Brand;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BrandMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Brand record);

    int insertSelective(Brand record);

    Brand selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Brand record);

    int updateByPrimaryKey(Brand record);

    List<Brand> selectAll();

    List<Brand> selectByLikeName(@Param("name") String name);

    List<Brand> selectByLikeLetter(@Param("letter") String letter);

    List<Brand> selectByLikeLetterOrName(@Param("letter") String letter,
                                         @Param("name") String name);

    List<Brand> findByCategoryId(Integer categoryId);
}